// http://101.201.235.48:8016/api/Doc/GetOctpusEnterPriseDataList

import Http from '@/common/http';

/**http://localhost:8082/api/File/getNewFile
 * 文档目录
 */
export const GetOctpusEnterPriseDataList = params => Http.send('post', 'api/File/getNewFile', params);

/**
 * 删除文件
 */
export const DeleteEnterPriseData = params => Http.send('post', 'api/File/delFileName', params);

// export const downLoadDocs = params => Http.download(url, params);

// 返回uploadTask,可以监听上传进度
// export const uploadFile = (filePath, type, complete) => Http.upload(`/file/upload/${type.type}`, filePath, {
// 	type
// }, complete);

export const downLoadDocs = (url, complete) => Http.download(url, complete);


/**
 * 
 * did: 152
fileName: "8.8安全阀说明书-edit.pdf"
fileUpdateUser: "admin"
 * 文件重命名
 *  http://39.105.108.125:8016/api/File/reFileName
 */
export const UpdateDocEntDocName = params => Http.send('post', 'api/File/reFileName', params);

/**
 * 
 * 文件查询
 */
export const searchEnterPriseDoc = params => Http.send('post', 'api/Doc/SearchEnterPriseDoc', params);


/**
 * 
 * 文档编码树获取
 */
export const getDocCodeAreaData = params => Http.send('post', 'api/DocumentCode/getDocCodeAreaData', params);

export const getDocCodeFareaData = params => Http.send('post', 'api/DocumentCode/getDocCodeFareaData', params);

/**
 * 
 * 文件目录index查询
 */
export const getTopFolderId = params => Http.send('get', 'api/services/Doc/GetTopFolderId', params);

export const getModelData = params => Http.send('post', 'api/ModelDataSPC/GetModelData', params);

// http://39.105.108.125:8016/api/ModelDataSPC/GetModelData

// http://39.105.108.125:8016/api/ModelDataSPC/GetModelData
// http://101.201.235.48:8016/api/DocumentCode/getDocCodeAreaData



